package com.zuxia.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zuxia.dao.IRepairDao;
import com.zuxia.entity.Repair;
import com.zuxia.service.IRepairService;
@Service
@Transactional
public class RepairService implements IRepairService{
	@Autowired
	private IRepairDao repdao;

	@Override
	public List findRepair(int pageNow, String xname, int pageSize) {
		// TODO Auto-generated method stub
		return repdao.findRepair(pageNow,xname, pageSize);
	}

	@Override
	public int repsize() {
		// TODO Auto-generated method stub
		return repdao.repsize();
	}

	@Override
	public void delrep(Repair repair) {
		// TODO Auto-generated method stub
		repdao.delrep(repair);
		
	}

	@Override
	public void addrep(Repair repair) {
		// TODO Auto-generated method stub
		repdao.addrep(repair);
		
	}

	@Override
	public Repair findupdateRepair(Repair repair) {
		// TODO Auto-generated method stub
		return repdao.findupdateRepair(repair);
	}

	@Override
	public void updrep(Repair repair) {
		// TODO Auto-generated method stub
		repdao.updrep(repair);
	}

}
